package com.imagination.applet.controller.web.configuration;

import com.imagination.applet.infrastructure.common.RestResponse;
import org.springframework.web.bind.annotation.ExceptionHandler;

public class GlobalExceptionHandler {
    @ExceptionHandler(Exception.class)
    public RestResponse<Void> handleException(Exception e) {
        return RestResponse.of("500", e.getMessage());
    }
}